<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: OpenGL</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('group__OpenGL.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">OpenGL<div class="ingroups"><a class="el" href="group__util.html">Utilities Library (jetson-utils)</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p>OpenGL textures and display window (X11/GLX).  
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classglDisplay.html">glDisplay</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">OpenGL display window / video viewer.  <a href="classglDisplay.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classglTexture.html">glTexture</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">OpenGL texture with CUDA interoperability.  <a href="classglTexture.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:gabe9ef8f3c57b226efaf58ab3059bceab"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#gabe9ef8f3c57b226efaf58ab3059bceab">LOG_GL</a>&#160;&#160;&#160;&quot;[OpenGL] &quot;</td></tr>
<tr class="memdesc:gabe9ef8f3c57b226efaf58ab3059bceab"><td class="mdescLeft">&#160;</td><td class="mdescRight">OpenGL logging prefix.  <a href="#gabe9ef8f3c57b226efaf58ab3059bceab">More...</a><br /></td></tr>
<tr class="separator:gabe9ef8f3c57b226efaf58ab3059bceab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf3b91dc56dd99fa3abbce89be15fef93"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#gaf3b91dc56dd99fa3abbce89be15fef93">GL</a>(x)&#160;&#160;&#160;{ x; <a class="el" href="group__OpenGL.html#ga9c5211ebc6e2eee2b12288cd52c4236e">glCheckError</a>( #x, __FILE__, __LINE__ ); }</td></tr>
<tr class="memdesc:gaf3b91dc56dd99fa3abbce89be15fef93"><td class="mdescLeft">&#160;</td><td class="mdescRight">OpenGL error-checking macro.  <a href="#gaf3b91dc56dd99fa3abbce89be15fef93">More...</a><br /></td></tr>
<tr class="separator:gaf3b91dc56dd99fa3abbce89be15fef93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga26503b7a548ff678a4dc5aa73de4c784"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#ga26503b7a548ff678a4dc5aa73de4c784">GL_VERIFY</a>(x)&#160;&#160;&#160;{ x; if(<a class="el" href="group__OpenGL.html#ga9c5211ebc6e2eee2b12288cd52c4236e">glCheckError</a>( #x, __FILE__, __LINE__ )) return false; }</td></tr>
<tr class="memdesc:ga26503b7a548ff678a4dc5aa73de4c784"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return false on OpenGL error.  <a href="#ga26503b7a548ff678a4dc5aa73de4c784">More...</a><br /></td></tr>
<tr class="separator:ga26503b7a548ff678a4dc5aa73de4c784"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae16e17292445d5654bb49896cdd49bcd"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#gae16e17292445d5654bb49896cdd49bcd">GL_VERIFYN</a>(x)&#160;&#160;&#160;{ x; if(<a class="el" href="group__OpenGL.html#ga9c5211ebc6e2eee2b12288cd52c4236e">glCheckError</a>( #x, __FILE__, __LINE__ )) return NULL; }</td></tr>
<tr class="memdesc:gae16e17292445d5654bb49896cdd49bcd"><td class="mdescLeft">&#160;</td><td class="mdescRight">OpenGL NULL on OpenGL error.  <a href="#gae16e17292445d5654bb49896cdd49bcd">More...</a><br /></td></tr>
<tr class="separator:gae16e17292445d5654bb49896cdd49bcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga99a7852633ed1a98e0f1918367355ec0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#ga99a7852633ed1a98e0f1918367355ec0">GL_CHECK</a>(msg)&#160;&#160;&#160;{ <a class="el" href="group__OpenGL.html#ga9c5211ebc6e2eee2b12288cd52c4236e">glCheckError</a>(msg, __FILE__, __LINE__); }</td></tr>
<tr class="memdesc:ga99a7852633ed1a98e0f1918367355ec0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print a message on OpenGL error.  <a href="#ga99a7852633ed1a98e0f1918367355ec0">More...</a><br /></td></tr>
<tr class="separator:ga99a7852633ed1a98e0f1918367355ec0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gaa1e51833a1b003db2359ea965e501806"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#gaa1e51833a1b003db2359ea965e501806">glCheckError</a> (const char *msg, const char *file, int line)</td></tr>
<tr class="memdesc:gaa1e51833a1b003db2359ea965e501806"><td class="mdescLeft">&#160;</td><td class="mdescRight">OpenGL error-checking messsage function.  <a href="#gaa1e51833a1b003db2359ea965e501806">More...</a><br /></td></tr>
<tr class="separator:gaa1e51833a1b003db2359ea965e501806"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9c5211ebc6e2eee2b12288cd52c4236e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#ga9c5211ebc6e2eee2b12288cd52c4236e">glCheckError</a> (const char *msg)</td></tr>
<tr class="memdesc:ga9c5211ebc6e2eee2b12288cd52c4236e"><td class="mdescLeft">&#160;</td><td class="mdescRight">OpenGL error check + logging.  <a href="#ga9c5211ebc6e2eee2b12288cd52c4236e">More...</a><br /></td></tr>
<tr class="separator:ga9c5211ebc6e2eee2b12288cd52c4236e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae70530a98d9a14c84fffea7e3f3083ab"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__OpenGL.html#gae70530a98d9a14c84fffea7e3f3083ab">glPrintFreeMem</a> ()</td></tr>
<tr class="memdesc:gae70530a98d9a14c84fffea7e3f3083ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">Print the amount of free GPU memory.  <a href="#gae70530a98d9a14c84fffea7e3f3083ab">More...</a><br /></td></tr>
<tr class="separator:gae70530a98d9a14c84fffea7e3f3083ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>OpenGL textures and display window (X11/GLX). </p>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="gaf3b91dc56dd99fa3abbce89be15fef93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf3b91dc56dd99fa3abbce89be15fef93">&#9670;&nbsp;</a></span>GL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GL</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;{ x; <a class="el" href="group__OpenGL.html#ga9c5211ebc6e2eee2b12288cd52c4236e">glCheckError</a>( #x, __FILE__, __LINE__ ); }</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>OpenGL error-checking macro. </p>

</div>
</div>
<a id="ga99a7852633ed1a98e0f1918367355ec0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga99a7852633ed1a98e0f1918367355ec0">&#9670;&nbsp;</a></span>GL_CHECK</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GL_CHECK</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">msg</td><td>)</td>
          <td>&#160;&#160;&#160;{ <a class="el" href="group__OpenGL.html#ga9c5211ebc6e2eee2b12288cd52c4236e">glCheckError</a>(msg, __FILE__, __LINE__); }</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Print a message on OpenGL error. </p>

</div>
</div>
<a id="ga26503b7a548ff678a4dc5aa73de4c784"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga26503b7a548ff678a4dc5aa73de4c784">&#9670;&nbsp;</a></span>GL_VERIFY</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GL_VERIFY</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;{ x; if(<a class="el" href="group__OpenGL.html#ga9c5211ebc6e2eee2b12288cd52c4236e">glCheckError</a>( #x, __FILE__, __LINE__ )) return false; }</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Return false on OpenGL error. </p>

</div>
</div>
<a id="gae16e17292445d5654bb49896cdd49bcd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae16e17292445d5654bb49896cdd49bcd">&#9670;&nbsp;</a></span>GL_VERIFYN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define GL_VERIFYN</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">x</td><td>)</td>
          <td>&#160;&#160;&#160;{ x; if(<a class="el" href="group__OpenGL.html#ga9c5211ebc6e2eee2b12288cd52c4236e">glCheckError</a>( #x, __FILE__, __LINE__ )) return NULL; }</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>OpenGL NULL on OpenGL error. </p>

</div>
</div>
<a id="gabe9ef8f3c57b226efaf58ab3059bceab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gabe9ef8f3c57b226efaf58ab3059bceab">&#9670;&nbsp;</a></span>LOG_GL</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define LOG_GL&#160;&#160;&#160;&quot;[OpenGL] &quot;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>OpenGL logging prefix. </p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="gaa1e51833a1b003db2359ea965e501806"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaa1e51833a1b003db2359ea965e501806">&#9670;&nbsp;</a></span>glCheckError() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool glCheckError </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>msg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>file</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>line</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>OpenGL error-checking messsage function. </p>

</div>
</div>
<a id="ga9c5211ebc6e2eee2b12288cd52c4236e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga9c5211ebc6e2eee2b12288cd52c4236e">&#9670;&nbsp;</a></span>glCheckError() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool glCheckError </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>msg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>OpenGL error check + logging. </p>

</div>
</div>
<a id="gae70530a98d9a14c84fffea7e3f3083ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae70530a98d9a14c84fffea7e3f3083ab">&#9670;&nbsp;</a></span>glPrintFreeMem()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void glPrintFreeMem </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Print the amount of free GPU memory. </p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="footer">Generated on Thu Sep 26 2019 12:19:11 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
